package com.study.main.vo;

/**
 * @Create by ldr.
 * @create 2018-08-31 10:48
 * @Description：用户信息视图
 */
public class UserInfo {

    private String password;

    private String userName;

    private int userId;
    /**
     * 信息编号
     */
    private int infoId;

    /**
     * 用户中文名
     */
    private String chineseName;

    /**
     * 电话
     */
    private String telNumber;

    /**
     * Gitlab账号
     */
    private String gitlabNumber;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 学分
     */
    private double credit;

    /**
     * 成绩
     */
    private double grade;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public double getCredit() {
        return credit;
    }

    public void setCredit(double credit) {
        this.credit = credit;
    }

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getTelNumber() {
        return telNumber;
    }

    public void setTelNumber(String telNumber) {
        this.telNumber = telNumber;
    }

    public String getGitlabNumber() {
        return gitlabNumber;
    }

    public void setGitlabNumber(String gitlabNumber) {
        this.gitlabNumber = gitlabNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public UserInfo(int userId, int infoId, String chineseName, String telNumber, String gitlabNumber, String email, double credit, double grade) {
        this.userId = userId;
        this.infoId = infoId;
        this.chineseName = chineseName;
        this.telNumber = telNumber;
        this.gitlabNumber = gitlabNumber;
        this.email = email;
        this.credit = credit;
        this.grade = grade;
    }
    public UserInfo(int userId, int infoId, String chineseName,String userName, String telNumber, String gitlabNumber, String email, double credit, double grade) {
        this.userId = userId;
        this.infoId = infoId;
        this.chineseName = chineseName;
        this.telNumber = telNumber;
        this.userName = userName;
        this.gitlabNumber = gitlabNumber;
        this.email = email;
        this.credit = credit;
        this.grade = grade;
    }
    public UserInfo(String userId, String infoId, String chineseName,String userName, String telNumber, String gitlabNumber, String email, String credit, String grade) {
        this.userId = Integer.parseInt(userId);
        this.infoId = Integer.parseInt(infoId);
        this.chineseName = chineseName;
        this.userName = userName;
        this.telNumber = telNumber;
        this.gitlabNumber = gitlabNumber;
        this.email = email;
        this.credit = Double.parseDouble(credit) ;
        this.grade = Double.parseDouble(grade);
    }
    public UserInfo(String userId, String infoId, String chineseName, String telNumber, String gitlabNumber, String email, String credit, String grade) {
        this.userId = Integer.parseInt(userId);
        this.infoId = Integer.parseInt(infoId);
        this.chineseName = chineseName;
        this.telNumber = telNumber;
        this.gitlabNumber = gitlabNumber;
        this.email = email;
        this.credit = Double.parseDouble(credit) ;
        this.grade = Double.parseDouble(grade);
    }
    public UserInfo() {
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "infoId=" + infoId +
                ", chineseName='" + chineseName + '\'' +
                ", telNumber='" + telNumber + '\'' +
                ", gitlabNumber='" + gitlabNumber + '\'' +
                ", email='" + email + '\'' +
                ", credit=" + credit +
                ", grade=" + grade +
                '}';
    }
}
